package com.palfund.pagertabstrip;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.ArrayList;

/**
 * Created by clvc on 2017/7/27.
 * 真正的速度是看不见的 !
 * Today is today , we will go !
 */

public class BlankFragmentPagerAdapter extends FragmentPagerAdapter {
    private ArrayList<BlankFragment> mList;
    private String[] mTitles;


    public BlankFragmentPagerAdapter(FragmentManager fm, ArrayList<BlankFragment> list, String[]
            titles) {
        super(fm);
        mList = list;
        mTitles = titles;
    }

    @Override
    public Fragment getItem(int position) {
        return mList.get(position);
    }

    @Override
    public int getCount() {
        return mList.size();
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return mTitles[position];
    }
}
